<?php
//读取文件
require "../config.php";
$file_name = $_GET['f'];
$isMatched = preg_match('/^(\d)*/', $file_name,$matches);
if(!file_exists("Files/".$matches[0]))
{
    die("文件不存在</br>File not found");
}else
{
    $fp = fopen("Files/".$matches[0], "r");
    if($fp)
    {
        for($i=1;! feof($fp);$i++)
        {
            echo fgets($fp);
        }
    }
}
fclose($fp);